<template>
  <div class="simple_head-height">
    <header class="simple_head-wrapper">
      <div class="nav-wapper">
        <headNav :navs="topNavLeftData" />
        <headSearch class="item-search" size="mini" />
        <div class="top_nav_right-wrapper">
          <navUserCenter />
        </div>
      </div>
    </header>
  </div>
</template>

<script>
import headNav from './head/headNav.vue';
import navUserCenter from '@/components/nav-user-center/index.vue';
import headSearch from './head/search.vue';

export default {
    components: {
        headNav,
        navUserCenter,
        headSearch,
    },
    props: {
        topNavLeftData: Array,
    },
};
</script>

<style lang="less">
.simple_head-height {
  height: @headNavHeight;
}
.simple_head-wrapper {
  width: 100%;
  height: @headNavHeight;
  position: fixed;
  top: 0;
  z-index: 1001;
  background-color: fade(@base_color, 90%);
  &::before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    background-color: fade(#fff, 40%);
    box-shadow: fade(#000, 10%) 0 1px 2px;
  }
}
.nav-wapper {
  max-width: @bigWidth;
  min-width: @baseWidth;
  margin: 0 auto;
  position: relative;
  display: flex;
  justify-content: space-between;
}
.item-search {
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
}
</style>
